package com.jia.lidao.enity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 00029935 on 2017/12/14.
 */

public class MessagetBeen {

    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1513228604
     * messages : {"page":1,"data":[{"status":1,"message_id":22,"type":3,"title":"订单消息","pic":"","content":"编号为20171212161224501206的订单，商家已经发货了，请尽快确认收货哦。","created_time":"2017-12-13 12:18:07"},{"status":1,"message_id":21,"type":3,"title":"订单消息","pic":"","content":"编号为20171212161224501206的订单，商家已经发货了，请尽快确认收货哦。","created_time":"2017-12-13 12:13:08"},{"status":1,"message_id":20,"type":3,"title":"订单消息","pic":"","content":"编号为20171212161224501206的订单，商家已经发货了，请尽快确认收货哦。","created_time":"2017-12-13 12:03:22"},{"status":1,"message_id":15,"type":3,"title":"订单消息","pic":"","content":"编号为20171212161224501206的订单，商家已经发货了，请尽快确认收货哦。","created_time":"2017-12-13 03:31:59"},{"status":1,"message_id":10,"type":3,"title":"订单消息","pic":"","content":"编号为20171212161224501206的订单，商家已经发货了，请尽快确认收货哦。","created_time":"2017-12-12 08:14:17"},{"status":1,"message_id":9,"type":3,"title":"订单消息","pic":"","content":"编号为20171212160321501205的订单，商家已经等待发货了，请尽快付款哦。","created_time":"2017-12-12 08:04:24"},{"status":1,"message_id":8,"type":3,"title":"订单消息","pic":"","content":"编号为20171212160321501205的订单，商家已经等待发货了，请尽快付款哦。","created_time":"2017-12-12 08:03:47"}],"page_size":10,"total_records":7,"total_pages":1}
     */

    private int err_code;
    private String err_msg;
    private int timestamp;
    private MessagesBean messages;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public MessagesBean getMessages() {
        return messages;
    }

    public void setMessages(MessagesBean messages) {
        this.messages = messages;
    }

    public static class MessagesBean {
        /**
         * page : 1
         * data : [{"status":1,"message_id":22,"type":3,"title":"订单消息","pic":"","content":"编号为20171212161224501206的订单，商家已经发货了，请尽快确认收货哦。","created_time":"2017-12-13 12:18:07"},{"status":1,"message_id":21,"type":3,"title":"订单消息","pic":"","content":"编号为20171212161224501206的订单，商家已经发货了，请尽快确认收货哦。","created_time":"2017-12-13 12:13:08"},{"status":1,"message_id":20,"type":3,"title":"订单消息","pic":"","content":"编号为20171212161224501206的订单，商家已经发货了，请尽快确认收货哦。","created_time":"2017-12-13 12:03:22"},{"status":1,"message_id":15,"type":3,"title":"订单消息","pic":"","content":"编号为20171212161224501206的订单，商家已经发货了，请尽快确认收货哦。","created_time":"2017-12-13 03:31:59"},{"status":1,"message_id":10,"type":3,"title":"订单消息","pic":"","content":"编号为20171212161224501206的订单，商家已经发货了，请尽快确认收货哦。","created_time":"2017-12-12 08:14:17"},{"status":1,"message_id":9,"type":3,"title":"订单消息","pic":"","content":"编号为20171212160321501205的订单，商家已经等待发货了，请尽快付款哦。","created_time":"2017-12-12 08:04:24"},{"status":1,"message_id":8,"type":3,"title":"订单消息","pic":"","content":"编号为20171212160321501205的订单，商家已经等待发货了，请尽快付款哦。","created_time":"2017-12-12 08:03:47"}]
         * page_size : 10
         * total_records : 7
         * total_pages : 1
         */

        private int page;
        private int page_size;
        private int total_records;
        private int total_pages;
        private List<DataBean> data;

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getPage_size() {
            return page_size;
        }

        public void setPage_size(int page_size) {
            this.page_size = page_size;
        }

        public int getTotal_records() {
            return total_records;
        }

        public void setTotal_records(int total_records) {
            this.total_records = total_records;
        }

        public int getTotal_pages() {
            return total_pages;
        }

        public void setTotal_pages(int total_pages) {
            this.total_pages = total_pages;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean implements Serializable{
            /**
             * status : 1
             * message_id : 22
             * type : 3
             * title : 订单消息
             * pic :
             * content : 编号为20171212161224501206的订单，商家已经发货了，请尽快确认收货哦。
             * created_time : 2017-12-13 12:18:07
             */

            private int status;
            private int message_id;
            private int type;
            private String title;
            private String pic;
            private String content;
            private String created_time;

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getMessage_id() {
                return message_id;
            }

            public void setMessage_id(int message_id) {
                this.message_id = message_id;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getPic() {
                return pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getCreated_time() {
                return created_time;
            }

            public void setCreated_time(String created_time) {
                this.created_time = created_time;
            }
        }
    }
}
